import request from '@/utils/request'
import { GET_USER_INFO } from '@/store/actionTypes'
// import { setToken } from '@/utils/storage'
export const getUserInfo = (formData) => {
    return  async dispatch => {
        // 发异步请求
        // console.log(' 发异步请求formData',formData)
        const res = await request({url: '/user'})
        console.log(res)
        dispatch({
            type: GET_USER_INFO,
            payload: res.data
        })
    }
}